import store from "@/store";
import cookie from "js-cookie";
export default {
    state: {
        loginState: cookie.get('loginState') || "", //登录状态  200 未登录 100 已登录
        userId: cookie.get('userId') || "",
    },
    getters: {

    },
    mutations: {
        // 设置 登录状态
        setloginState(state, stateData) {
            state.loginState = stateData.stateId;
            state.userId = stateData.userId;
        },
    },
    actions: {},
}